package 黑马程序员Java基础;

import java.util.Scanner;

/**
 * @ClassName: [ArrayTest2]
 * @Description:
 * @Author: [黄劲松]
 * @CreateDate: [2021-03-25]
 * @Version: [v1.0]
 */
public class ArrayTest2 {
    public static void main(String[] args) {
        Scanner scanner = new Scanner(System.in);
        String str;
        System.out.println("请输入出数字的字符串：");
        str = scanner.nextLine();
        System.out.println("输出字符串：" + str);
        String str1=str.substring(6);
        System.out.println("截取字符后："+str1);
        String str2 = "";
        for (int i=0;i<str1.length();i++){
            if ((str1.charAt(i)<=9&&str1.charAt(i)>=0)||(str1.charAt(i)>='a'&&str1.charAt(i)<'z')){
                str2+=str1.charAt(i);
            }
        }
        System.out.println("去除所有指定字符后："+str2);
        /*char[] arr=str2.toCharArray();
        for (int i=0;i<arr.length;i++){
            System.out.println(arr[i]);
        }*/

        System.out.println("重复最多的字符：");
        System.out.println("重复个数：");
    }
}

//  输入：names=['a','b','c','d','1','2','a','b','c','d']